import request from '@/ulm/request';
export default {
	// 账号登录
	accountLogin: (data) =>
		request({
			url: '/user/api/user/accountLogin',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '登录中',
			},
		}),
	profile: () =>
		request({
			url: '/user/api/user/profile',
			method: 'GET',
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	// 账号登出
	logout: (data) =>
		request({
			url: '/user/api/user/logout',
			method: 'POST',
			data,
		})
}
